﻿@model PresentationMVC.Models.CustomerDataModel
@using (Ajax.BeginForm("GridviewSearch", "Customer", new AjaxOptions { UpdateTargetId = "DivGrid", InsertionMode = InsertionMode.Replace, LoadingElementId = "resultLoadingDiv" }))
{
    <table width="600px">
        <tr>
            <td>
                Search By
            </td>
            <td> @Html.DropDownListFor(m => m.CustomerSearch.SearchBy, new SelectList(Model.Columns,"Key","Value"))
            </td>
            <td>
                Value
            </td>
            <td>@Html.TextBoxFor(m => m.CustomerSearch.Value)
            </td>
            <td>
                <input type="submit" value="Search" />
            </td>
        </tr>
    </table>
    
    <br />
    
}